#include "../Logs/Log.h"
#include <unistd.h>

//使用说明

int main()
{
    //1 定义一个局部构造者对象s
    std::unique_ptr<MyLogger::LoggerBuilder> Build= std::make_unique<MyLogger::BuildLocalLogger>("Log1");

    Build->BuildLoggerType(MyLogger::LoggerType::LOGGER_SYNC);
    Build->BuiltLogLand<LogToFile>("./Usynclog/log1.txt");


    std::shared_ptr<MyLogger::Logger> LogPtr = Build->Build();
    MyLogger::LoggerManager::GerInsrance().AddLogger(LogPtr);
    for (int i = 0; i < 100000; i++)
    {
    
        LogPtr->Fatal("%s%d", "测试功能1", 777);

    }
 
}